package tmall.product.entity;

import java.math.BigDecimal;

import tmall.company.entity.CompanyEntity;
import tmall.producttype.entity.ProductTypeEntity;

/*
`ID` int(11) NOT NULL,
`NAME` varchar(255) DEFAULT NULL,
`PRICE` decimal(10,2) DEFAULT NULL,
`LENGTH` decimal(10,1) DEFAULT NULL COMMENT '默认是厘米',
`WIDTH` decimal(10,1) DEFAULT NULL,
`HEIGHT` decimal(10,1) DEFAULT NULL,
`COMPANY_ID` int(11) DEFAULT NULL,
`TYPE_ID` varchar(255) DEFAULT NULL,*/
public class ProductEntity {
	
	//自己的字段
	private Integer id;
	private String name;
	private BigDecimal price;
	private BigDecimal length;
	private BigDecimal width;
	private BigDecimal height;
	private Integer companyId;
	private String typeId;
	
	
	private ProductTypeEntity producttype= new ProductTypeEntity();
	private CompanyEntity company=new CompanyEntity();
	
	//其他表的字段  少于五个可以用这种方法
	private String companyName;
	private String typeName;
	
	
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public ProductTypeEntity getProducttype() {
		return producttype;
	}
	public void setProducttype(ProductTypeEntity producttype) {
		this.producttype = producttype;
	}
	public CompanyEntity getCompany() {
		return company;
	}
	
	
	
	public void setCompany(CompanyEntity company) {
		this.company = company;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public BigDecimal getLength() {
		return length;
	}
	public void setLength(BigDecimal length) {
		this.length = length;
	}
	public BigDecimal getWidth() {
		return width;
	}
	public void setWidth(BigDecimal width) {
		this.width = width;
	}
	public BigDecimal getHeight() {
		return height;
	}
	public void setHeight(BigDecimal height) {
		this.height = height;
	}
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public String getTypeId() {
		return typeId;
	}
	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	
	
	

}
